const routes = [
    {
        name: 'ShopOrderListing',
        path: '/shop/order-listing',
        meta: {
            title: '我的订单'
        },
        components: {
            default: resolve => require(['../views/shop/order-listing.vue'], resolve)
        }
    },
    {
        name: 'ShopOrderAdds',
        path: '/shop/order-adds',
        meta: {
            title: '添加订单'
        },
        components: {
            default: resolve => require(['../views/shop/order-adds.vue'], resolve)
        }
    },
    {
        name: 'ShopOrderAddItemByNormal',
        path: '/shop/order-item-add-normal',
        meta: {
            title: '添加回收资源'
        },
        components: {
            default: resolve => require(['../views/shop/order-item-add-normal.vue'], resolve)
        }
    },
    {
        name: 'ShopOrderAddItemByScan',
        path: '/shop/order-item-add-scan',
        meta: {
            title: '添加回收资源'
        },
        components: {
            default: resolve => require(['../views/shop/order-item-add-scan.vue'], resolve)
        }
    },
    {
        name: 'ShopOrderPredictPrice',
        path: '/shop/order-predict-price',
        meta: {
            title: '订单确认'
        },
        components: {
            default: resolve => require(['../views/shop/order-predict-price.vue'], resolve)
        }
    },
    {
        name: 'SalesmanOrderListing',
        path: '/salesman/order-listing',
        meta: {
            title: '暂存点订单'
        },
        components: {
            default: resolve => require(['../views/salesman/order-listing.vue'], resolve)
        }
    },
    {
        name: 'ShopStockManage',
        path: '/shop/stock-manage',
        meta: {
            title: '库存管理'
        },
        components: {
            default: resolve => require(['../views/shop/stock-manage.vue'], resolve)
        }
    },
    {
        name: 'SalesmanOrderDetails',
        path: '/salesman/order-details',
        meta: {
            title: '订单详情'
        },
        components: {
            default: resolve => require(['../views/shop/order-details.vue'], resolve)
        }
    },
    {
        name: 'SalesmanEditInformation',
        path: '/salesman/edit-information',
        meta: {
            title: '个人资料'
        },
        components: {
            default: resolve => require(['../views/public/personalInformation.vue'], resolve)
        }
    },
    {
        name: 'SalesmanHandInOrderConfirm',
        path: '/salesman/hand-in-order-confirm',
        meta: {
            title: '上交单确认'
        },
        components: {
            default: resolve => require(['../views/salesman/order-hand-in-confirm.vue'], resolve)
        }
    },
    {
        name: 'TemporaryDirectorOrderList',
        path: '/temporaryDirector/order-listing',
        meta: {
            title: '我的订单'
        },
        components: {
            default: resolve => require(['../views/temporaryDirector/order-listing.vue'], resolve)
        }
    },
    {
        name: 'PublicTrayManage',
        path: '/public/tray-manage',
        meta: {
            title: '托盘管理'
        },
        components: {
            default: resolve => require(['../views/public/tray-manage.vue'], resolve)
        }
    },
    {
        name: 'ReservoirManagementStockTray',
        path: '/reservoirManagement/stock-tray',
        meta: {
            title: '托盘分类详情'
        },
        components: {
            default: resolve => require(['../views/reservoirManagement/stock-tray.vue'], resolve)
        }
    },
    {
        name: 'ReservoirManagementStockTrayDetails',
        path: '/reservoirManagement/stock-tray-details',
        meta: {
            title: '托盘物品详情'
        },
        components: {
            default: resolve => require(['../views/reservoirManagement/stock-tray-details.vue'], resolve)
        }
    },
    {
        name: 'AccountingQuotedPriceEdits',
        path: '/accounting/quoted-price-edits',
        meta: {
            title: '修改报价'
        },
        components: {
            default: resolve => require(['../views/accounting/quoted-price-edits.vue'], resolve)
        }
    },
    {
        name: 'ReservoirManagementOrderDetails',
        path: '/reservoirManagement/order-details',
        meta: {
            title: '订单详情'
        },
        components: {
            default: resolve => require(['../views/reservoirManagement/order-details.vue'], resolve)
        }
    },
    {
        name: 'GeneralRepositoryOrderListing',
        path: '/GeneralRepository/order-listing',
        meta: {
            title: '我的订单'
        },
        components: {
            default: resolve => require(['../views/GeneralRepository/order-listing.vue'], resolve)
        }
    },
    {
        name: 'ReservoirManagementStockOut',
        path: '/reservoirManagement/stock-out',
        meta: {
            title: '出库'
        },
        components: {
            default: resolve => require(['../views/reservoirManagement/stock-out.vue'], resolve)
        }
    },
    {
        name: 'AccountingStockOutVerify',
        path: '/accounting/stock-out-verify',
        meta: {
            title: '出库审核'
        },
        components: {
            default: resolve => require(['../views/accounting/stock-out-verify.vue'], resolve)
        }
    },
    {
        name: 'TemporaryDirectorEditSalesmanPassword',
        path: '/temporaryDirector/edit-salesman-password',
        meta: {
            title: '修改业务员密码'
        },
        components: {
            default: resolve => require(['../views/temporaryDirector/edit-salesman-password.vue'], resolve)
        }
    },
    {
        name: 'TemporaryDirectorEditShopInfo',
        path: '/temporaryDirector/edit-shop-info',
        meta: {
            title: '修改门店信息'
        },
        components: {
            default: resolve => require(['../views/temporaryDirector/edit-shop-info.vue'], resolve)
        }
    }
];

export default routes;
